cmake_minimum_required(VERSION 3.10)

project(Pose3D)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_FLAGS "-g -Wall")

find_package(PkgConfig)
pkg_check_modules(GLFW REQUIRED IMPORTED_TARGET glfw3)
pkg_check_modules(GLEW REQUIRED IMPORTED_TARGET glew)

aux_source_directory(src SOURCE_FILE)

link_libraries(
  soil2
  PkgConfig::GLFW
  PkgConfig::GLEW
  pthread
)

add_executable(DataReader_test
  src/DataReader.cpp 
  run/DataReader_test.cpp
)

add_executable(PoseGL_test
  ${SOURCE_FILE}
  run/GLPose_test.cpp
)

add_executable(Pose3D
  ${SOURCE_FILE}
  run/Pose3D.cpp
)
